package cn.com.simple.learning.designpattern.structure.decorator;

/**
 * @author Jianxing.Jia
 * @date 2022/2/10
 * @description 描述信息
 */
public class Coconut extends Condiment {

    private final Beverage beverage;
    public Coconut(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription() + "，加料椰果";
    }
}
